package com.cola.demo;

/**
 * @Grup:com.cola.demo
 * @Auther:cola
 * @Data:2021/4/21-2021-04-0:30
 * @version:1.0
 */
public class PersonFactory {
    public static Person creatPerson1(){
        System.out.println("静态工厂方法创建Person..........");
        return new Person();
    }
    public Person creatPerson2(){
        System.out.println("实例工厂方法创建Person..........");
        return new Person();
    }
}
